{% extends "base.html" %}

{% block content %}

<h1>{{ poll.question }}</h1>

{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}

<form action="{% url polls.views.vote poll.id %}" method="post">
{% csrf_token %}
{% for choice in poll.choice_set.all %}
<label class="radio">
    <input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" />{{ choice.choice_text }}(Votes:{{choice.votes}})
</label>
{% endfor %}
To bet:
<input type="number" step="10" name="amount">
<button type="submit" class="btn">Vote</button>
</form>
Tags:
{% for tag in poll.tags.all %}
{% url taggit.views.detail tag.name as tag_url %}
<li>
  <a href="{{ tag_url }}">{{ tag.name }}</a>
</li>
{% endfor %}
<p>
Your remaining balance:{{balance}}
</p>
<p>
	<wb:share-button count="n" type="button" ></wb:share-button>
</p>
{% endblock %}
